package com.example.myapplication
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.widget.Button
import android.widget.TextView

class MyActivity: AppCompatActivity() {
    private lateinit var button3: Button
    private lateinit var textView: TextView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.layout)

        button3 = findViewById(R.id.button3)
        textView = findViewById(R.id.textView)


        button3.setOnClickListener {
            textView.text = resources.getString(R.string.clicked)
        }
    }
}